package com.entity;

import lombok.Data;

//使用@Data注解可以自动为类生成getter、setter、toString、equals和hashCode方法
@Data
public class BookEntity {

    private long bookId;// 图书ID

    private String name;// 图书名称

    private int number;// 馆藏数量

    public BookEntity() {
    }

    public BookEntity(long bookId, String name, int number) {
        this.bookId = bookId;
        this.name = name;
        this.number = number;
    }


    @Override
    public String toString() {
        return "BookEntity [bookId=" + bookId + ", name=" + name + ", number=" + number + "]";
    }


}

